Microchipping will help others return your dog if she/he ever gets lost.
Crate training or getting a puppy pen teaches your puppy to stay in a space quietly playing or napping.
Always make sure your pet is on a leash when you are outside, unless you are in a safe and secure fenced in area.